package com.wxg.englishwordgather.process;

import java.util.ArrayList;
import java.util.List;

import org.junit.Test;

import com.wxg.englishwordgather.bean.TargetPage;

public class ProcessorTestA implements PageProcessor{

	private List<TargetPage> lists = null;
	
	public List<TargetPage> process() {
		lists = new ArrayList<TargetPage>();
		TargetPage tp = new TargetPage();
		tp.setText("text");
		tp.setUrl("url");
		lists.add(tp);
		return lists;
	}
	
	@Test
	public void test001() {
		PageProcessor processor = new ProcessorTestA();
		List<TargetPage> alist = processor.process();
		if (null!=alist) {
			for(TargetPage tp : alist) {
				System.out.println( tp );
			}
		}
	}

}
